<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
		<div class="navbar navbar-default navbar-static-top active" role="navigation" style="margin-bottom: 0">
			<div class="navbar-header">
                <a class="logo" href="/sba/"><img src="/as/images/sb-pc-logo.png"></a>
            </div>
            <ul class="nav navbar-top-links navbar-right">
                <li><span>欢迎您，管理员${sys_user }</span></li>
                <li><a href="/sba/logout"><i class="glyphicon glyphicon-off" aria-hidden="true"></i>退出</a></li>
            </ul>
            <!-- left nav -->
            <div class="navbar-default sidebar" role="navigation"  id="sidebar">
            	<div class="sidebar-nav navbar-collapse">
            		<ul class="nav" id="side-menu">
                        <li>
                            <a href="/sba/main"><i class="glyphicon glyphicon-home" ></i>pinpin社保后台</a>
                        </li>
            			<c:forEach items="${sessionScope.MENU_LIST}"  var="menu" varStatus="status">
								<c:choose>
										<c:when test="${empty menu.subList}">
										<li><a href="${menu.url }"><i class="glyphicon glyphicon-minus-sign" aria-hidden="true"></i>${menu.title }</a></li>
										</c:when>
										<c:otherwise>
										<li><a href="${menu.url }"><i class="glyphicon glyphicon-plus-sign" aria-hidden="true"></i>${menu.title }</a>
											<ul class="nav nav-second-level collapse" aria-expanded="false">
												<c:forEach items="${menu.subList}"  var="sub">
				                                <li>
				                                    <a href="${sub.url }">${sub.title }</a>
				                                </li>
				                                </c:forEach>
				                            </ul>
										</li>
										</c:otherwise>
								</c:choose>
						</c:forEach>
            		</ul>
            	</div>
            </div>
		</div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
		<div  class="switch" id="switch" status="1">关闭菜单</div>